package com.andy.blog.admin.service;

import com.andy.blog.admin.dto.FileInfoDTO;
import com.andy.blog.dal.vo.FileInfoVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by andy on 2023/6/27 15:31
 */
public interface FileBusService {

    /**
     * 文件上传
     */
    FileInfoDTO uploadFile(MultipartFile file, FileInfoVO fileInfoVO);

    /**
     * 删除文件
     */
    void deleteFile(String filePath);

    /**
     * 获取文件列表
     */
    List<FileInfoDTO> listFiles();
}
